﻿using System.Web.Mvc;
using Actya.Core.Infrastructure;
using Actya.Plugins.Hello.Model;

namespace Actya.Plugins.Hello.Controllers
{
	public class HelloController : Controller
	{
		private readonly ICmsContext _cmsContext;

		public HelloController(ICmsContext cmsContext)
		{
			_cmsContext = cmsContext;
		}

		public ActionResult Index()
		{
			var model = _cmsContext.Page.Content as HelloModel;
			return View(model);
		}
	}
}
